//
//  InviteDetailTableViewCell.m
//  PCR
//
//  Created by shumei on 16/7/7.
//  Copyright © 2016年 shumei. All rights reserved.
//

#import "InviteDetailTableViewCell.h"

@implementation InviteDetailTableViewCell
{
    NSInteger currentTag;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    currentTag = 1;
  
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (IBAction)FirstCell_BtnClick:(UIButton *)sender {
    
    if (sender.tag == currentTag)
    {
        return;
    }
    
    switch (sender.tag)
    {
        case 1:
        {
            self.FirstCell_RightBtn.selected = NO;
            self.FirstCell_RightBtn.backgroundColor = [UIColor whiteColor];
            self.FirstCell_LeftBtn.selected = NO;
            self.FirstCell_LeftBtn.backgroundColor = InviteDetail_FirstCell_ButtonBGColor;

        }
            break;
        case 2:
        {
            self.FirstCell_RightBtn.selected = YES;
            self.FirstCell_RightBtn.backgroundColor = InviteDetail_FirstCell_ButtonBGColor;
            self.FirstCell_LeftBtn.selected = YES;
            self.FirstCell_LeftBtn.backgroundColor = [UIColor whiteColor];
            
        }
            break;
  
        default:
            break;
    }
    currentTag = sender.tag;
    
    
    
    [self.nextResponder routerEventWithName:@"InviteDetailFirstCell" userInfo:@{@"tag":[NSNumber numberWithInteger:sender.tag]}];
    
}





@end
